package zsw.reflect;

import java.util.List;

public class Teacher extends Person {
	
	private String teacherName;
	private String teacherId;
	private List<Student> list;
	public  String r;
	        String rr;
	        protected String rrr;
	 private       Integer age;
	
	
	
	
	public String getR() {
		return r;
	}

	public void setR(String r) {
		this.r = r;
	}

	public String getRr() {
		return rr;
	}

	public void setRr(String rr) {
		this.rr = rr;
	}

	public String getRrr() {
		return rrr;
	}

	public void setRrr(String rrr) {
		this.rrr = rrr;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getTeacherName() {
		return teacherName;
	}

	public String getTeacherId() {
		return teacherId;
	}

	public List<Student> getList() {
		return list;
	}

	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}
	
	public void setTeacherId(String teacherId) {
		this.teacherId = teacherId;
	}
	
	public void setList(List<Student> list) {
		this.list = list;
	}
	
	public void say() {
		System.out.println("我是一个老师：共有方法");
	}
	
	private void says() {
		System.out.println("我是一个老师：私有方法");
	}
	public void says(String name,Integer age) {
		System.out.println("我是一个老师：名字"+name+",年龄"+age);
	}

	public Teacher(String name,Integer age,String id) {
		this.teacherId=id;
		this.age=age;
		this.teacherName=name;
	}
	public Teacher() {
		
	}
	

}
